<?php

include_once '../Model/DAL/DanhDe.php';
include_once '../Model/DAL/Functions.php';

class danhdeController {

    public $model;

    function __construct() {
        $this->model = new DanhDe();
    }

    function getListChooseRegion() {
        $result = $this->model->getListChooseRegion();
        if ($result != NULL)
            include 'templates/danhde/ct-danhde-menu-mien.php';
    }

    function getListThread() {
        $resultThread = $this->model->getListThread();
        if ($resultThread != NULL)
            include 'templates/danhde/ct-danhde-menu-lode.php';
    }

    function getListChoiDe() {
        $result = $this->model->getListChoiDe();
        $functions = new Functions();
        include 'templates/danhde/ct-danhde-menu-choide.php';
    }

    function handleBet() {
        $result = $this->model->handleBet();
        echo $result;
    }

}
